package xjh.him.util;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {
    private static Toast toast;

    public static void show(Context ctx, String text) {
        if (toast != null) {
            toast.cancel();
        }
        toast = Toast.makeText(ctx, text, Toast.LENGTH_SHORT);
        toast.show();
    }
}
